const fs = require( 'fs' );
const path = require( 'path' );
const readline = require( 'readline' );

const basepath = "./doc/public/";

const fileNeedsRemoved = [ "Viewer.js.html", "api_ViewerApi.js.html", "plugins_HeatmapPlugin.js.html" ];


for ( let i = 0; i < fileNeedsRemoved.length; i++ ) {

    const filename = fileNeedsRemoved[ i ];

    const filepath = path.resolve( basepath + filename )

    if ( fs.existsSync( filepath ) ) {

        fs.unlinkSync( filepath );

    }

}
